package com.test.dazuoye.controller;

import com.test.dazuoye.domain.YongHu;
import com.test.dazuoye.service.YongHuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * @date 2020/6/3-11:41
 * 登录注册页面互相跳转，登录验证
 */
@Controller
@RequestMapping("/user")
public class UserController {


    //登录界面
    @RequestMapping("/index")
    public String DengLu() {
        System.out.println("登录页面");
        return "index";
    }

    //登录界面
    @RequestMapping("/denglu")
    public String DengLu1() {
        System.out.println("登录页面");
        return "denglu";
    }

    //注册界面
    @RequestMapping("/zhuce")
    public String ZhuCe() {
        System.out.println("注册页面");
        return "zhuce";
    }

    @RequestMapping("/yonghu")
    public String first() {
        System.out.println("用户管理页面");
        return "yonghu";
    }


    @RequestMapping(value = "/shangjia")
    public String shangjia() {
        System.out.println("商家界面");
        return "shangjia";
    }

    @RequestMapping(value = "/dingdan")
    public String dingdan() {
        System.out.println("订单界面");
        return "dingdan";
    }


    @RequestMapping("/errors")
    public String errors() {
        System.out.println("注册页面");
        return "errors";
    }




}
